# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to>
# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
pkgname=pam-krb5
pkgver=4.9
pkgrel=0
pkgdesc="PAM module providing Kerberos v5 support"
url="https://www.eyrie.org/~eagle/software/pam-krb5/"
arch="all"
license="BSD-3-Clause OR GPL-1.0-or-later"
makedepends="krb5-dev linux-pam-dev"
checkdepends="perl" # To run all tests a running KDC is required
subpackages="$pkgname-doc"
source="https://archives.eyrie.org/software/kerberos/pam-krb5-$pkgver.tar.gz
	"
options="!check"

build() {
	./configure \
		--prefix=/usr \
		--enable-reduced-depends \
		--libdir=/usr/lib
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
	install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

sha512sums="0e93fbfacf56f9935902ead000dc46732c8a11cc2689c00b68cbaaf6519108a4ce53bb943479d01e439fb92bcc5c1a219d2b816a5ade2af54ea093bb78907201  pam-krb5-4.9.tar.gz"
